<!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/tracing/core/test_utils.html">
<link rel="import" href="/tracing/extras/chrome/cc/layer_tree_host_impl.html">
<link rel="import" href="/tracing/extras/chrome/cc/raster_task.html">
<link rel="import" href="/tracing/extras/importer/trace_event_importer.html">
<link rel="import" href="/tracing/model/model.html">
<link rel="import" href="/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html">

<script src="/tracing/extras/chrome/cc/layer_tree_host_impl_test_data.js">
</script>

<script>
'use strict';

// See https://crbug.com/1143376.
tr.b.unittest.skippedTestSuite(function() {
  test('instantiate', function() {
    const m = tr.c.TestUtils.newModelWithEvents([g_catLTHIEvents]);
    const p = Object.values(m.processes)[0];

    const instance = p.objects.getAllInstancesNamed('cc::LayerTreeHostImpl')[0];
    const snapshot = instance.snapshots[0];

    const view = new tr.ui.e.chrome.cc.LayerTreeHostImplSnapshotView();
    view.style.width = '900px';
    view.style.height = '400px';
    view.objectSnapshot = snapshot;

    this.addHTMLOutput(view);
  });
});
</script>
